{{#section 'head'}}
    <title>详情</title>
    <link rel="stylesheet" type="text/css" href="css/detail.css">
    <link rel="stylesheet" type="text/css" href="/css/common.css">
{{/section}}
<div class="main">
	<div class="head2">
		<a href="javascript:history.back(-1)" class="back back-two"></a>
		<div class="name group-dt"></div>
		<i class="more more2"></i>
	</div>

	{{#each vacation}}
		<div class="user-icon"><img src="/vacation-photo/{{mgurl}}"></div>
		<div class='container' style="background-image: url(/vacation-photo/{{mgurl}});">		 
				 <div class='frosted-glass'></div>               
		</div>
		<div class="user-head">
			<div class="img" style="background-image: url(/vacation-photo/{{mgurl}});">
			</div>
			<i class="sex {{sex}}"></i>
		</div>
		{{#if markname}}
			<p class="name-mark">{{markname}}</p>
			<p class="user-name">昵称：{{name}}</p>
			<p class="explain">{{explain}}</p>
		{{else}}
			<p class="name-mark">{{name}}</p>
			<p class="user-name">昵称：{{name}}</p>
			<p class="explain">{{explain}}</p>
		{{/if}}
		<div class="user-more">
			<div class="head1">
				<i class="back back-one"></i>
				<div class="name group-dt">更多</div>
			</div>
			<div class="more-list">
				<p class="list1">昵称<span>{{name}}</span></p>
				<p class="mark list1 goto">备注<span>{{markname}}</span></p>
			</div>
			<div class="more-list">
				<p class="list1">邮箱<span>{{email}}</span></p>
				<p class="list1">生日<span>{{birth}}</span></p>
				<p class="list1">注册<span>{{registerdate}}</span></p>
			</div>
			{{#if admin}}
				<div class="more-list">
					<p class="pwd list1 goto">密码<span>修改密码</span></p>
				</div>
				<div class="tb"><a href="/logout" class="quit warning">退出</a></div></div>
				<div class="tb"><a href="/install" class="tb-inner">修改</a></div>
				<div class="changepwd">
					<div class="top">
						<button class="left">取消</button>
						<p class="name">修改密码</p>
						<button class="right uppwd" data-id="{{id}}">确定</button>
					</div>
					<div class="old pwd-list"><label>原密码</label><input type="text" class="old-pwd"></div>
					<div class="new pwd-list"><label>新密码</label><input type="password" class="new-pwd"></div>
				</div>
			{{else}}
			{{#if frid}}
				<div class="addmark">
					<div class="top">
						<button class="left">取消</button>
						<p class="name">修改备注</p>
						<button class="right upmark" data-id="{{id}}">确定</button>
					</div>
					<input type="text" class="markname" value="{{markname}}">
				</div>
				<div class="tb"><button class="delete warning" data-id="{{id}}">删除好友</button></div></div>
				<div class="tb"><a href="/chart?id={{id}}" class="tb-inner">聊天</a></div>
			{{else}}
				</div>
				<div class="tb"><button class="apply tb-inner">添加好友</button></div>
				<div class="apply-main">
					<div class="top">
							<button class="left">取消</button>
							<p class="name">好友请求</p>
							<button class="right add" data-id="{{id}}">发送</button>
					</div>
					<textarea class="reason" placeholder="说点什么吧..."></textarea>
				</div>
			{{/if}}
		{{/if}}
	{{/each}}
</div>
{{#section 'jquery'}}
	<script src="/lib/mobile/flexible.js" type="text/javascript"></script>
	<script src="/js/user-detail.js" type="text/javascript"></script>
{{/section}}
